home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
animatn
/
t4diblib
/
viewlib1.f4_
/
viewlib1.f4
Wrap
Text File
|
1995-12-11
|
2KB
|
88 lines
VERSION 4.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "VIEWLIB1"
ClientHeight = 2004
ClientLeft = 2388
ClientTop = 2244
ClientWidth = 4188
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 7.8
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 2424
Left = 2340
LinkTopic = "Form1"
ScaleHeight = 2004
ScaleWidth = 4188
Top = 1872
Width = 4284
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Quit"
Height = 372
Left = 2280
TabIndex = 1
Top = 1440
Width = 972
End
Begin VBX.T4DILIB dilib1
Caption = "dilib1"
ControlMode = 0 'Lib -> PIC
Height = 372
Left = 3360
Top = 1440
Visible = 0 'False
Width = 732
End
Begin VB.ListBox List1
Appearance = 0 'Flat
Height = 1176
Left = 2280
TabIndex = 0
Top = 120
Width = 1812
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Load()
Dim myctr%
'Center the form.
Top = (Screen.Height - Height) / 2!
Left = (Screen.Width - Width) / 2!
'Set our DIB library name and open it.
dilib1.LibraryName = "bluespin.ilb"
dilib1.Action = IM_ACTION_OPENLIBRARY
'Fill the list box with member numbers.
For myctr = 1 To dilib1.MemberCount
dilib1.MemberNumber = myctr
list1.AddItem "[" + Trim$(Str$(myctr)) + "]"
Next myctr
End Sub
Private Sub List1_Click()
'Add 1 to ListIndex for Base-1.
dilib1.MemberNumber = list1.ListIndex + 1
'Load and display the image.
dilib1.Action = IM_ACTION_GETMEMBER
Picture = dilib1.Picture
End Sub